package com.apexsoft.assets.liveservice;

import com.apexsoft.FileFrame;
import com.apexsoft.LiveMethod;
import com.apexsoft.RequestObserver;
import com.apexsoft.ResponseObserver;
import com.apexsoft.assets.base.param.FileFrameWithParam;
import com.apexsoft.assets.base.response.AResponse;

import java.util.Map;


public interface ZgTestService {

    @LiveMethod(paramAsRequestBody = true,note = "测试")
    AResponse sayHello(Map<String,Object> param);

    //文件上传
    @LiveMethod(note = "测试上传")
    RequestObserver<FileFrameWithParam> uploadFile(ResponseObserver<AResponse> responseObserver);

    //文件下载
    @LiveMethod(note = "测试下载")
    RequestObserver<String> downloadFile(ResponseObserver<FileFrame> responseObserver);
}
